
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
// 导入富文本剪辑器
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
// 按需导入字体图标
import { ArrowRight, Delete, Edit, Lock, Notebook, PieChart, Plus, SwitchButton, User, View } from '@element-plus/icons-vue'
// 导入路由配置
import router from './router'
// 导入 ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入 index.scss 样式模块
import './styles/index.scss'

const app = createApp(App)

// 创建并注册 Pinia
app.use(createPinia())
// 注册字体图标
app.component(Lock.name, Lock)
app.component(User.name, User)
app.component(PieChart.name, PieChart)
app.component(Notebook.name, Notebook)
app.component(SwitchButton.name, SwitchButton)
app.component(ArrowRight.name, ArrowRight)
app.component(Plus.name, Plus)
app.component(Edit.name, Edit)
app.component(View.name, View)
app.component(Delete.name, Delete)
// 注册富文本编辑器
app.component('QuillEditor', QuillEditor)
// 注册 router
app.use(router)
// 注册 ElementPlus 组件库
app.use(ElementPlus)
app.mount('#app')

